<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>05背景位置练习</title>
    <style>
        .box {
            height: 489px;
            background-color: #f00;
            background-image: url(./images/mhxy.jpg);
            /* 
                始终居中，看到最重要的部分
             */
            background-position: center;
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>